home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / misc / ppcpack.lha / intro.txt < prev    next >
Encoding:
Text File  |  1998-04-16  |  2.6 KB  |  64 lines

  1. A) Introduction
  2. ===============
  3.  
  4. Since the release of PowerUP quite some programs appeared on Aminet,
  5. that supported the PPC. There are a lot of people, though, who theoretically
  6. could support the PPC, but don't so. Against to popular believe you do not
  7. need a PPC Board to start supporting the PPC (of course owning a PPC helps
  8. a great deal...). This brings us back to the old ASM<->C discussion.
  9.  
  10. I am not a highlanguage-fanatic, but neither am i a ASM-fanatic. I used
  11. both languages in their appropriate places. Principially there are three
  12. ways of doing the job:
  13.  
  14. I) "Full C Job"
  15.  
  16. My Image-Viewer WarpView is such a thing, for example, 100% written in C,
  17. and it is DAMNED FAST.
  18.  
  19. You have to notice, a PPC is *fast*. If you are not the "PPC-Hacker" himselves,
  20. you probably won't get too much MORE speed out of it by doing ASM optimization.
  21. Also the PPC is a RISC CPU, which means that the CPU is not that easy programmable
  22. like a 68k. Well, in some ways, though, it is really GOOD programmable, i would
  23. always prefer coding on a PPC in ASM to coding on a Pentium in ASM.
  24.  
  25. Also you have to keep in mind, normally you will reach the Amiga's Display
  26. Hardware limits, before you reach the limits of the C-based code. You should
  27. also remember: Anyways, if you do ASM or C PPC Developpement, you have to
  28. learn something new. Moving from 68060 ASM to PPC ASM is not like moving from
  29. 68020 to 68060, it is something completely new...
  30.  
  31. Another advantage: If you do 100% C developpement, you do not even need a
  32. PPC. You can do PPC Developpement on your 68k machine...
  33.  
  34. II) "Part C, Part ASM"
  35.  
  36. As always, some stuff cannot be done really fast in C. I would list here
  37. 68k emulations :), Chunky-Copy functions, inner Texturemapping loops,...
  38.  
  39. So it makes sense, starting a project in 100% C, and when a first running
  40. executable exists, optimizing certain parts in ASM.
  41.  
  42. This method is, what i would recommend to people who already have a PPC Board.
  43.  
  44. ZhaDoom is done in this way (well, actually up to now it is 100% C, but this
  45. will change soon...).
  46.  
  47. III) "Full ASM Job"
  48.  
  49. I don't think this makes any sense. Believe me.
  50.  
  51. IV) "Part 68k, Part PPC ASM/C"
  52.  
  53. This would be for Demo-Coders who have all their code in 68k. They could
  54. mix 68k and PPC Code, creating a mixed Binary in the process. If they do the
  55. PPC Part in C, they can even do the work without owning a PPC Board.
  56.  
  57. My personal recommendation would be to start off with 100% C. You will have
  58. to learn C, anyways, if you do not want life much more difficult than needed,
  59. on PPC... so why not starting with it ? Also, the 68k/PPC parallel developpement
  60. makes this approach really interesting, especially for people who do not yet
  61. own a PPC Board.
  62.  
  63.  
  64.